<?php
session_start();
      if (isset($_SESSION['k_username'])) {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="/style.css" type="text/css" />
<title>Registrar Cliente Nuevo</title>
</head>

<body>
<?php 

  include('conexion.inc.php');
  $link = Conectarse();

mysql_select_db("gotica_ordencompras" ,$link);
?>
<div align="center" class="Estilo1">Registrar Cliente Nuevo</div>
<form method="post" action="regcliente.php">
<table >
<tr>
<td>
  Razon Social </td>
  <td>
  <input type="text" name="nombre" maxlength="100" size="100" />
  </td></tr>
<tr>

    <td>Direccion</td>
  
   <td> <input type="text" name="direccion" maxlength="100" size="100" />
   </td>
</tr>

<tr>
<td>
Telefono</td>
<td>
<input name="telefono" type="text"  maxlength="10" />
</td>
</tr>
<tr>
<td>
RUC
</td>
<td>
<input name="ruc"  type="text"  maxlength="11" />
</td>
</td>
</tr>
<tr>
<td>
<input type="submit" value="enviar" name="enviar"  />
</td>
<td>
<input type="reset" value="Limpiar" />
</td>
</tr>
</table>
</form>
<div align="center" >
<a href="/ordenes.php">Inicio</a></div>
</body>
</html>
<?
}else
{
	echo "<SCRIPT LANGUAGE=\"javascript\">";
echo "location.href = \"index.php\"";
echo "</SCRIPT>";
	}
?>